#pragma once
#include "Region.h"

class Goal :
	public Region
{
public:
	enum Location{ left, right };

	Goal(void);
	Goal(Region* field, Location location);
	~Goal(void);

	inline int GetScore()const{ return m_score; }
	Vector2 GetFirstPost(Vector2 from)const;
	Vector2 GetSecondPost(Vector2 from)const;

	Vector2 const GetLeftPost()const{ return m_leftPost; }
	Vector2 const GetRightPost()const{ return m_rightPost; }

	bool IsGoalScored(Vector2 ballPos);

private:
	int			m_location;

	int			m_score;

	Vector2		m_leftPost;
	Vector2		m_rightPost;
};
